<template>
  <div class="info_chunk">
    <a-form-item :label="formData.hideTitle ? '':`${formData.name || ' '}`" :colon="formData.name ? true: false" :required="formData.required" :extra="formData.extra">
      <!-- autoExpandParent:是否自动展开父节点 true-->
      <!-- checkable:节点前添加 Checkbox 复选框 true-->
      <!-- expandedKeys：展开指定的树节点 string[] | number[]-->
      <!-- selectedKeys：设置选中的树节点 string[] | number[] -->
      <a-tree
        :checkable="formData.checkable"
        v-model="formData.checkedKeys"
        :auto-expand-parent="formData.autoExpandParent"
        :tree-data="formData.opts"
        style="pointer-events: none;"
      />
    </a-form-item>
  </div>
</template>

<script>
export default {
  name: 'TreeInfo',
  props: {
    formData: {
      type: Object,
      default: () => {}
    }
  }
}
</script>
<style scoped lang="less">

</style>
